using System;

namespace Edge.Common.ComponentModel.Exceptions
{
    /// <summary>
    /// Summary description for WebParameterException.
    /// </summary>
    public class WebParameterException : ApplicationException
    {
        private string _parametr;

        public WebParameterException(string parametr)
        {
            this._parametr = parametr;
        }

        public WebParameterException(string message, string parametr)
            : base(message)
        {
            this._parametr = parametr;
        }

        public WebParameterException(string message, string parametr, Exception inner)
            : base(message, inner)
        {
            this._parametr = parametr;
        }

        public override string Message
        {
            get
            {
                return "Invalid web parametr: \"" + _parametr + "\" " + base.Message;
            }
        }

    }
}
